package com.laf.manage.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.laf.common.core.domain.BaseEntity;
import com.laf.manage.enums.ContentTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 收藏表
 * </p>
 *
 * @author zian
 * @since 2024-11-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_store")
@ApiModel(value = "Store对象", description = "收藏表")
public class Store extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "收藏类型 1 动态 2 失物")
    private ContentTypeEnum contentType;

    @ApiModelProperty(value = "管理id ， 可以 lost_item 中的id ， 也可以 content 中的id")
    private Long contentId;

    @ApiModelProperty(value = "收藏者id")
    private Long createUserId;

}
